/*
 * @Description:车间生产详情接口类型
 * @Author: shilinzhou
 * @Date: 2024-01-02 13:44:23
 * @LastEditors: shilinzhou
 * @LastEditTime: 2024-01-17 18:17:49
 */
import { ParamsPage, ResponsePage } from '@/api/common/type';

export type ShopProDetailsParams = SearchParams & ParamsPage;

export interface SearchParams {
    workshopId: number;
    orderNumber: string;
    materialCode: string;
    materialName: string;
    processCode: string;
    processName: string;
    plannedProcessingStatus: string;
    actualProcessingStatus?: string;
    equipmentCode: string;
    equipmentName: string;
    statDate?: string;
    scheduledStartRange?: {
        start: string;
        end: string;
    };
    scheduledEndRange?: {
        start: string;
        end: string;
    };
    dateRange?: {
        start: string;
        end: string;
    };
}

export interface ShopProDetailsResponse extends ResponsePage {
    records: ShopProDetailsRecord[];
}

export interface ShopProDetailsRecord {
    id: number;
    materialCode: string;
    materialName: string;
    orderNumber: string;
    equipmentCode: string;
    equipmentName: string;
    processCode: string;
    processName: string;
    plannedProcessingStatus: string;
    actualProcessingStatus: string;
    plannedQuantity: number;
    completedQuantity: number;
    processSchedule: number;
    plannedStartTime: string;
    plannedEndTime: string;
    orderStatus: string;
    specificTime: string;
    now: string;
}
